using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

public class DBMaskedTextBox : MaskedTextBox
{
    public DBMaskedTextBox(DGVTextBoxColumn Creator)
        : base()
    {
        this.TextAlign = HorizontalAlignment.Right;
        this.DataBindings.Add(new Binding("Text", Creator.DataGridView.DataSource, Creator.DataPropertyName, true, DataSourceUpdateMode.OnValidation, null, "N2"));
    }
}
